﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.IO;

namespace OnlineMusic
{
    public partial class Favorite : Form
    {
        public mainf mf;
        public Data data;

        public Favorite()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            data.addFavorite(this.tb_title.Text, this.tb_url.Text);
            this.Dispose();
            this.mf.ReInitBtPanel();
        }
    }
}
